package com.lagou.zk;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class CommonNode {

    public static String serverNode;

    public static String hostNode;

    @Value("${zk.server.node}")
    public void setServerNode(String serverNode) {
        CommonNode.serverNode = serverNode;
    }

    @Value("${zk.host.node}")
    public void setHostNode(String hostNode) {
        CommonNode.hostNode = hostNode;
    }
}
